package com.zaydanwu.cla.controller.students;

import com.zaydanwu.cla.model.ExamPlan;
import com.zaydanwu.cla.model.result.ApiResult;
import com.zaydanwu.cla.service.ExamPlanService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @BelongsProject: cla
 * @BelongsPackage: com.zaydanwu.cla.controller.students
 * @Author: zaydanwu
 * @CreateTime: 2018-12-10 22:43
 * @Description:
 */
@RestController
@RequestMapping("/cla/api")
public class ExamPlanController {

    @Resource
    private ExamPlanService examPlanService;

    @RequestMapping("/getAppointExamPlan")
    public ApiResult<List<ExamPlan>> getAppointExamPlan(@RequestParam Long stuNo) {
        List<ExamPlan> appointExamPlan = examPlanService.getAppointExamPlan(stuNo);
        return ApiResult.success(appointExamPlan);
    }
}
